﻿@model WebSoftSeo.Models.Consult
<div class="mar10 borall">
    <div class="floatl">
        <span class="floatl">
            <img src="/Areas/Admin/images/icon-48-generic.png" /></span>
        <span class="title-name">Trả lời</span>
    </div>
</div>
<!--end borall-->
<div class="clear0"></div>
<div class="mar10 borall">
    <div class="div100"></div>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true);
            <fieldset class="fromlist">
                <legend>Trả lời bình luận</legend>
                <ul>
                    <li>
                        <label>Bình luận số</label>
                        @Html.DisplayFor(model => model.ID)
                    </li>
                    <li>
                        @Html.LabelFor(model => model.Name, "Tên người bình luận")
                        @Html.DisplayFor(model => model.Name)
                    </li>
                    <li>
                        @Html.LabelFor(model => model.Email, "Email")
                        @Html.DisplayFor(model => model.Email)
                    </li>
                    <li>
                        @Html.LabelFor(model => model.Title, "Tiêu đề")
                        @Html.DisplayFor(model => model.Title)
                    </li>
                    <li>
                        @Html.LabelFor(model => model.Phone, "Phone")
                        @Html.DisplayFor(model => model.Phone)
                    </li>
                    <li>
                        @Html.LabelFor(model => model.Contents, "Nội Dung")
                        <div style="margin-left: 240px;">
                            @Html.DisplayFor(model => model.Contents)
                        </div>
                    </li>
                    <li>
                        @Html.LabelFor(model => model.Date, "Ngày")
                        @Html.DisplayFor(model => model.Date)
                    </li>
                    <li>
                        @Html.LabelFor(model => model.Status, "Status")
                        @if (Model.Status == false)
                        {
                            @:Waiting
                        }
                        else
                        {
                            @:Approved
                        }
                    </li>
                    <li>
                        @Html.LabelFor(model => model.IPuser, "IP")
                        @Html.DisplayFor(model => model.IPuser)
                    </li>
                    <li>
                        
                        <label>Khung trả lời</label>
                        @Html.ValidationMessageFor(m=>m.Contents)
                        
                        <div style="margin-left: 240px;"><p style="color: red; font-size:16px">@ViewBag.error</p></div>
                        <div style="margin-left: 240px;">
                            <textarea class="formInput" placeholder="Trả lời cho bình luận này" name="comments" id="comments"  style="height: 200px; width: 1000px" ></textarea>
                        </div>
                        
                    </li>
                    <li class="toolbar">
                        <label></label>
                            <p>
                                <input type="submit" value="Reply" class="button_sm" />
                                |
                                @Html.ActionLink("Back to List", "Index")
                            </p>
                    </li>
                </ul>
            </fieldset>
}
</div>
<!--end mar10-->

